package com.jzlw.huozhuduan.network.httpservice;


import java.util.List;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

/**
 * ClassName HttpApi
 * Description 存放所有的Api
 */
public interface HttpApi {

    //发送验证码
    @POST("auth/captcha")
    Observable<ResponseBody> captcha(@Body() Object encodeJsonBean);

    //账号密码登录接口
    @POST("auth/sms/login")
    Observable<ResponseBody> login(@Body() Object encodeJsonBean);

    //短信注册接口
    @POST("auth/sms/register")
    Observable<ResponseBody> register(@Body() Object encodeJsonBean);
    //图片上传
    @POST("file/upload")
    @Multipart
    Observable<ResponseBody> uploadPic(@Part MultipartBody.Part part);

    //批量上传
    @POST("file/multipleUpload")
    @Multipart
    Observable<ResponseBody> uploadPicList(@Part List<MultipartBody.Part> part);


}

